from django.db import models


# 这是公共的继承模型，有创建时间、上传时间、是否删除、是否展示和排序
class BaseModel(models.Model):

    created_time = models.DateTimeField(auto_now_add=True)
    updated_time = models.DateTimeField(auto_now_add=True)
    is_deleted = models.BooleanField(default=False)
    is_show = models.BooleanField(default=True)
    orders = models.IntegerField(default=0)

    class Meta:
        abstract = True

